home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 4 code / Poly. in Code Resources / Virtual WDEF / WindowDefinition.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-04  |  995 b   |  35 lines  |  [TEXT/MPS ]

  1. /*
  2.     WindowDefinition.h
  3.     
  4.     An abstract base class for implementing Window Definition
  5.     code resources in C++.
  6.     
  7.     by Patrick C. Beard.
  8.  */
  9.  
  10. #ifndef __WINDOWDEFINITION__
  11. #define __WINDOWDEFINITION__
  12.  
  13. #ifndef __WINDOWS__
  14. #include <Windows.h>
  15. #endif
  16.  
  17. #include "Relocatable.h"
  18.  
  19. class WindowDefinition : public Relocatable {
  20. public:
  21.     virtual void New(WindowPeek theWindow)                // initialize window.
  22.                     { itsWindow = theWindow; }
  23.     virtual void Dispose() {}                            // destroy window.
  24.     virtual void CalcRgns() {}                            // compute all relevant regions.
  25.     virtual void DrawFrame() {}                            // draw the frame of the window.
  26.     virtual void DrawGoAwayBox() {}                        // draw the goaway box (toggle state).
  27.     virtual void DrawGIcon() {}                            // draw window's grow icon.
  28.     virtual void DrawGrowImage(Rect& growRect) {}        // draw grow image of window.
  29.     virtual long Hit(Point& whereHit)                    // do hit testing.
  30.                     { return wNoHit; }
  31. protected:
  32.     WindowPeek itsWindow;                                // window we are keeping track of.
  33. };
  34.  
  35. #endif